package xcmg.device.dao.mapper.ratingManager;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import xcmg.device.dao.entity.ratingManager.MarketDealerRatingDO;

import java.util.List;

@Mapper
@Repository
public interface MarketDealerRatingMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(MarketDealerRatingDO record);

    MarketDealerRatingDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(MarketDealerRatingDO record);

    List<MarketDealerRatingDO> selectByRatingId(@Param("ratingId") String ratingId);

    MarketDealerRatingDO selectByRatingIdGrad(@Param("ratingId") String ratingId,@Param("orgId") String orgId,@Param("grad") String grad);
}